﻿@model DashboardModel

@using Giant.Services.Security

@{
    Html.AppendCssFileParts("~/Administration/Content/ionicons/css/ionicons-2.0.1.min.css");

    //page title
    ViewBag.Title = T("Admin.Dashboard").Text;

    var permissionService = EngineContext.Current.Resolve<IPermissionService>();
    var canManageUsers = permissionService.Authorize(StandardPermissionProvider.ManageUsers);

}

@Html.AntiForgeryToken()
<div class="content-header">
    <h1>
        @T("Admin.Dashboard")
    </h1>
</div>

<div class="content">
    <div class="row">
        <div class="col-md-12">
            @Html.Widget("admin_dashboard_top")

                <div class="row">
                    <div class="col-md-12">
                        @Html.Action("CommonStatistics", "Home")
                    </div>
                </div>
          
            @Html.Widget("admin_dashboard_commonstatistics_after")
            @if (canManageUsers)
            {
                <div class="row">

                        <div class="col-md-6">
                            @Html.Action("UserStatistics", "User")
                        </div>
                    
                </div>
            }            

            @Html.Widget("admin_dashboard_bottom")
        </div>
    </div>
</div>
